﻿using Hrunga.PVCM.Framework.Controls;

namespace Hrunga.PVCM.WinForms.Controls
{
    /// <summary>
    /// Custom implementation of a button control
    /// </summary>
    public partial class Button : System.Windows.Forms.Button, IButton
    {
        /// <summary>
        /// Gets the text associated with this control.
        /// </summary>
        /// <value></value>
        /// <returns>The text associated with this control.</returns>
        public new string Text
        {
            get { return base.Text; }
            set
            {
                this.Tag = value;
                base.Text = value;
            }
        }
    }

}
